package cn.tedu.csmall.product.service;

import cn.tedu.csmall.product.pojo.param.AttributeAddNewParam;
import cn.tedu.csmall.product.pojo.param.AttributeUpdateInfoParam;
import cn.tedu.csmall.product.pojo.vo.AttributeListItemVO;
import cn.tedu.csmall.product.pojo.vo.AttributeStandardVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface AttributeService {

    void addNew(AttributeAddNewParam attributeAddNewParam);

    void delete(Long id);

    void updateInfoById(Long id, AttributeUpdateInfoParam attributeUpdateInfoParam);

    AttributeStandardVO getStandardById(Long id);

    List<AttributeListItemVO> list(Long templateId);
}
